local FightBuff = require("gameLogic.fight.fightBuff.FightBuff")
local BuffResistHurt = class("BuffResistHurt", FightBuff)
local Hurt = require("gameLogic.fight.fightHurtStrategy.Hurt")

function BuffResistHurt:ctor(config, entity, whoEntity, resistEntity)
    self._resistEntity = resistEntity -- 替他抵挡伤害
    BuffResistHurt.super.ctor(self, config, entity, whoEntity)
end

function BuffResistHurt:_excute(battleReport, hurt)
end

function BuffResistHurt:checkCondEntity(entity)
    return self._resistEntity:getId() == entity:getId() and (not self._entity:isDie())
end

return BuffResistHurt
